package org.jeecg.modules.nc.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.nc.entity.NcPersonnel;
import org.jeecg.modules.nc.vo.NCPersonAndJobVo;
import org.jeecg.modules.nc.vo.NCPersonVO;
import org.jeecg.modules.nc.vo.SysUserPsnVo;

import java.util.List;
import java.util.Map;

/**
 * @Description: nc_bd_psndoc
 * @Author: qixin-boot
 * @Date:   2021-11-30
 * @Version: V1.0
 */
public interface INcPersonnelService extends IService<NcPersonnel> {

    // 通过名称、组织查询人员列表
    List<NCPersonAndJobVo> queryNCPersonelList();

    // 通过部门id查询人员信息
    List<NcPersonnel> queryPsnByDepId(String id);

    // 通过id查询人员信息
    NcPersonnel queryById(String id);


    NcPersonnel queryByUserid(String userId);

    List<NCPersonVO> queryNcPsnListByPkpsndoc(String pkPsndoc);

    //更新人员档案的组织名称以及部门名称
    void updatePsNOrgAndDept();

    List<SysUserPsnVo> selectPsnByPkpsndoc(Map<String,Object> map);


    // 查询的人员的主职/兼职信息列表
    IPage<NCPersonAndJobVo> queryPersonList(Page<NCPersonAndJobVo> page, QueryWrapper<NCPersonAndJobVo> queryWrapper);
}
